package com.entity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单
 * @author HeLiwei
 * 2023年9月4日
 */
public class Order {

	/**
	 * 促销活动
	 */
	private List<Promotion> promotionList;
	
	/**
	 * 订单行表
	 */
	private List<OrderItem> orderItemList;
	
	/**
	 * 总价格
	 */
	private BigDecimal totalPrice;

	public Order() {}
	
	public Order(List<OrderItem> orderItemList) {
		this.orderItemList = orderItemList;
	}
	
	public Order(List<OrderItem> orderItemList,List<Promotion> promotionList) {
		this.orderItemList = orderItemList;
		this.promotionList = promotionList;
	}

	public List<Promotion> getPromotionList() {
		return promotionList;
	}

	public void setPromotionList(List<Promotion> promotionList) {
		this.promotionList = promotionList;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public List<OrderItem> getOrderItemList() {
		return orderItemList;
	}

	public void setOrderItemList(List<OrderItem> orderItemList) {
		this.orderItemList = orderItemList;
	}
	
}
